package com.zxc.controller.service;

import com.zxc.entity.CstType;
import com.zxc.service.CstTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/service")
public class CstTypeController {

    @Autowired
    private CstTypeService cstTypeService;

    @RequestMapping(value = "/getTypeService")
    @ResponseBody
    public List<CstType> getTypeService(){
        return cstTypeService.getCstTypeService();
    }
}
